<script>
	const toast = uni.requireNativePlugin('Ba-Toast')
	const floatWin = uni.requireNativePlugin('Ba-FloatWinWeb')
	export default {
		onLaunch: function() {
			console.log('App Launch')
			var globalEvent = uni.requireNativePlugin('globalEvent');
			globalEvent.addEventListener('baFloatWinWeb', function(e) {
				console.log('baFloatWinWeb：' + JSON.stringify(e));
				toast.showToast({
					title: 'baFloatWinWeb：' + JSON.stringify(e)
				});
				if (e.tag == "notify") {
					floatWin.hide({
							tag: "notify"
						},
						(res) => {
							console.log(res);
						});
				}
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>